<nav class="navbar-default navbar-static-side" role="navigation">
	<div class="nav-close"><i class="fa fa-times-circle"></i></div>
	<div class="sidebar-collapse">
		<ul class="nav" id="side-menu">
			<li class="nav-header">
				<div class="dropdown profile-element">
					<span>
						<img alt="image" class="img-circle" src="#springUrl('/static/img/profile_small.jpg')"/>
					</span>
					<a data-toggle="dropdown" class="dropdown-toggle" href="#">
						<span class="clear">
							<span class="block m-t-xs"><strong class="font-bold">$!{currentUser.loginName}</strong></span>
							<span class="text-muted text-xs block">$!{roleNames}<b class="caret"></b></span>
						</span>
					</a>
					<ul class="dropdown-menu animated fadeInRight m-t-xs">
						<li><a class="J_menuItem" href="#springUrl('/sys/sysUser/setAvatar.html')">修改头像</a></li>
						<li><a class="J_menuItem" href="profile.html">个人资料</a></li>
						<li><a class="J_menuItem" href="contacts.html">联系我们</a></li>
						<li><a class="J_menuItem" href="mailbox.html">信箱</a></li>
						<li class="divider"></li>
						<li><a href="#springUrl('/logout.html')">安全退出</a></li>
					</ul>
				</div>
				<div class="logo-element">UNITD</div>
			</li>
			#foreach( $root in $menuList )
				<li #currentClass($root.url, "class='active'")>
					<a href="#">
						<i class="${root.icon}"></i><span class="nav-label">${root.name}</span><span class="fa arrow"></span>
					</a>
					<ul class="nav nav-second-level">
						#foreach($first in $root.sonList)
							#if ($null.isNull($first.sonList) || $first.sonList.size()==0)
								<li #currentClass($m.url,"class='active'")>
									<a class="J_menuItem" href="#springUrl(${first.url})">${first.name}</a>
								</li>
							#else
								<li>
									<a href="#">${first.name}<span class="fa arrow"></span></a>
									<ul class="nav nav-third-level">
										#foreach($second in $first.sonList)
										<li><a class="J_menuItem" href="#springUrl(${second.url})">${second.name}</a></li>
										#end
									</ul>
								</li>
							#end
						#end
					</ul>
				</li>
			#end
		</ul>
	</div>
</nav>